<template>
  <div>
    <a :href="href">去百度</a>
    <a @click="one" :href="href">去百度</a>
  </div>
</template>

<script>
export default {
  data() {
    return {
      href:"https:www.baidu.com"
    };
  },
  computed: {},
  methods: {
    one(e){
      e.preventDefault()
    }
  },
};
</script>

<style lang="scss" scoped>
</style>